package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.StrategyInterest;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface StrategyInterestMapper {
    int deleteByPrimaryKey(Long id);

    int insert(StrategyInterest record);

    StrategyInterest selectByPrimaryKey(@Param("strategyId") Long strategyId,@Param("userId") Long userId);

    List<StrategyInterest> selectAll();

    int updateByPrimaryKey(StrategyInterest record);

    /**
     * 定义点赞是否是有
     *
     * @param strategyId
     * @param userId
     * @return
     */
    StrategyInterest selectByStrategyIdAndUserId(@Param("strategyId") Long strategyId, @Param("userId") Long userId);
}